Skip to content

Comments

Add from __future__ import annotations to empty_string_error.py#83

Open
Copilot wants to merge 2 commits intomainfrom
copilot/add-future-import-empty-string-error
Open

Add from __future__ import annotations to empty_string_error.py#83
Copilot wants to merge 2 commits intomainfrom
copilot/add-future-import-empty-string-error

Conversation

Copy link
Contributor

Copilot AI commented Feb 19, 2026

empty_string_error.py was missing the from __future__ import annotations import required by the repo's coding standards. All other validator error modules in the same package already include it.

Summary

Add the missing future import to empty_string_error.py:

"""Exception raised for empty string values."""

from __future__ import annotations

Testing

  • Not run (why?)
  • uv run poe check
  • Other:

Checklist

  • Linked issue or task reference
  • Added/updated tests where relevant
  • Updated docs/README if needed
  • No secrets or sensitive data added
  • Considered backward compatibility and deployment impact

Additional context

Original prompt

This section details on the original issue you should resolve

<issue_title>Add from __future__ import annotations to empty_string_error.py</issue_title>
<issue_description>The module agents/agent1/src/python_agent_template/agents/agent1/validators/errors/empty_string_error.py is missing the from __future__ import annotations import at the top of the file.

The repo's coding standards explicitly require this future import in every module, and the other newly added validator error modules already follow this pattern. Omitting it can lead to annotation evaluation edge cases.

File: agents/agent1/src/python_agent_template/agents/agent1/validators/errors/empty_string_error.py
Line: 4


This new module omits from __future__ import annotations, but the repo's coding standards explicitly call for it in every module (and the other newly added validator error modules follow that pattern). Add the future import to keep consistency and avoid annotation evaluation edge cases.


Related PR: #51
Review comment: #51 (comment)

Generated by PR Review Comment — Create Issue for issue #51

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: pmalarme <686568+pmalarme@users.noreply.github.com>
Copilot AI changed the title [WIP] Add from __future__ import annotations to empty_string_error.py Add from __future__ import annotations to empty_string_error.py Feb 19, 2026
Copilot AI requested a review from pmalarme February 19, 2026 22:10
@pmalarme pmalarme marked this pull request as ready for review February 19, 2026 22:13
Copilot AI review requested due to automatic review settings February 19, 2026 22:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds the required from __future__ import annotations import to the empty_string_error.py module, bringing it into alignment with the repository's coding standards and the pattern already established by the other validator error modules in the same package.

Changes:

  • Added from __future__ import annotations import to empty_string_error.py after the module docstring with proper spacing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add from __future__ import annotations to empty_string_error.py

2 participants